package com.whfc.wxmp.api.quality.service.impl;

import com.whfc.quality.dto.QualityIssueDTO;
import com.whfc.quality.dto.QualityIssueTypeDTO;
import com.whfc.quality.service.QualityIssueService;
import com.whfc.wxmp.api.quality.service.WxQualityIssueService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClasssName WxQualityIssueServiceImpl
 * @Description 质量问题类型实现类
 * @Author hw
 * @Date 2020/8/4 18:41
 * @Version 1.0
 */
@Service
public class WxQualityIssueServiceImpl implements WxQualityIssueService {

    @DubboReference(interfaceClass = QualityIssueService.class, version = "1.0.0")
    private QualityIssueService qualityIssueService;

    @Override
    public List<QualityIssueTypeDTO> issueTypeList(Integer deptId) {
        return qualityIssueService.issueTypeList(deptId, "");
    }

    @Override
    public List<QualityIssueDTO> issueList(Long issueTypeId) {
        return qualityIssueService.issueList(issueTypeId);
    }

    @Override
    public List<QualityIssueDTO> issueHistoryList(Integer deptId, Integer pageSize) {
        return qualityIssueService.issueHistoryList(deptId, pageSize);
    }
}
